package com.maduar.mybatis.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author maduar maduar@163.com
 * @date 2021-03-28 22:08
 */
@SpringBootApplication
@EntityScan(basePackages = "com.maduar.mybatis.demo.entity")
@MapperScan(basePackages = "com.maduar.mybatis.demo.mapper")
@EnableDiscoveryClient
@EnableFeignClients
@RestController
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
